file_path= ''
with open(file_path, 'r') as file:
    # 读取文件内容
    content = file.read()

# 将冒号前的单词加上双引号
lines = content.split('\n')
modified_lines = []

for line in lines:
    parts = line.split(':')
    if len(parts) > 1:
        key = parts[0].strip()
        rest = ':'.join(parts[1:]).strip()
        modified_line = f'"{key}": {rest}'
        modified_lines.append(modified_line)
    else:
        modified_lines.append(line)

# 将修改后的内容写回文件
modified_content = '\n'.join(modified_lines)

with open(file_path, 'w') as file:
    file.write(modified_content)
